package com.guang.springbootscheduleexecutortest.dao.dao;


import com.guang.springbootscheduleexecutortest.dao.dao.entity.DistributedLockRecord;
import com.guang.springbootscheduleexecutortest.dao.dao.entity.DistributedLockRecordExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DistributedLockRecordMapper {

    long countByExample(DistributedLockRecordExample example);

    int deleteByExample(DistributedLockRecordExample example);

    int deleteByPrimaryKey(String lockKey);

    int insert(DistributedLockRecord record);

    int insertSelective(DistributedLockRecord record);

    List<DistributedLockRecord> selectByExample(DistributedLockRecordExample example);

    DistributedLockRecord selectByPrimaryKey(String lockKey);

    int updateByExampleSelective(@Param("record") DistributedLockRecord record, @Param("example") DistributedLockRecordExample example);

    int updateByExample(@Param("record") DistributedLockRecord record, @Param("example") DistributedLockRecordExample example);

    int updateByPrimaryKeySelective(DistributedLockRecord record);

    int updateByPrimaryKey(DistributedLockRecord record);
}